<!DOCTYPE html>
<html lang="en" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <meta charset="UTF-8">
    <title>401</title>
</head>
<body>
<div>
    <h1>权限不够</h1>
</div>
<div sec:authorize="isAuthenticated()">
    <p>已有用户登录</p>
    <p>用户：<span sec:authentication="name"></span></span> </p>
    <p>角色：<span sec:authentication="principal.authorities"></span></span> </p>
</div>
<div sec:authorize="isAnonymous()">
    <p>未有用户登录</p>
</div>
<p>
    拒绝访问！
</p>
</body>
</html>